<include file="public+header">

{script}
<!-- 
function update(){
	Dyhb.AjaxSubmit('passwordUpd','{:G::U('public/change_pass')}',null,complete);
}

function complete(data,status){
		if (status==1)
		{
		 //window.setTimeout(function (){window.location.href='{:G::U('public/login')}',20000});
		}
	}

-->
{/script}

   <!-- 标题  -->
   <div class="title"><lang>修改密码</lang></div>

  <!-- 正文 -->
  <div id="content" class="content">
      <form action="{:G::U('public/changePass')}" method="post" id="passwordUpd">
      <table class="form-table full">
          <tr>
            <th valign="top"><label for="old_password"><lang>旧密码：</lang></label></th>
            <td><input type="text" name="old_password" id="old_password" class="field" size="40"  value=""/>
			<div class="description"><lang>用户以前使用的密码</lang></div>
			<div class="warning"><lang>旧密码必须输入准确才能够修改密码</lang></div>
            </td>
          </tr>
          <tr>
            <th valign="top"><label for="user_password">新密码：</lang></label></th>
            <td><input type="password" name="user_password" id="user_password" class="field" size="40"  value=""/>
			<div class="description"><lang>当前需要修改的新密码</lang></div>
            </td>
          </tr>
          <tr>
            <th valign="top"><label for="new_password">确认新密码：</lang></label></th>
            <td><input type="password" name="new_password" id="new_password" class="field" size="40"  value=""/>
			<div class="description"><lang>新密码确认，保证密码正确输入</lang></div>
            </td>
          </tr>
          <if condition=$changepasswordseccode>
		  <tr>
            <th valign="top"><label for="seccode"><lang>验证码：</lang></label></th>
            <td><input type="text"  class="field" name="seccode" size="6"/>
		        <img id="verifyImg" src="{:G::U('public/verify')}" onClick="flesh_verify()" border="0" alt="<lang>点击刷新验证码</lang>" style="cursor:pointer">
				<div class="description"><lang>修改密码验证码</lang></div>
            </td>
          </tr>
		  </if>
          
          </table> 
          <p class="center"><input type="hidden" name="ajax" value="1">   
          <input type="hidden" name="user_id" value="{$nUserId}">   
          <input type="button" onclick="update()"  class="button" value="  <lang>修改密码</lang>  " />
          <input type="button" onClick="history.back()" class="button" value="  <lang>取消</lang>  " />
        </p>
        </form>
   </div>
   <!-- end content -->

<include file="public+footer">